//202302104059鲁林
package cn.edu.sdjzu.xg.eagle.entity;

public class Pagination {
    private int pageSize = 5;
    private int pageNo = 1;
    private int totalCount=1;
    public Pagination() {}
    public Pagination(int pageSize, int pageNo) {
        if (pageSize >0) this.pageSize = pageSize;
        if (pageNo>0) this.pageNo = pageNo;
    }

    // Size
    public int getPageSize() {
        return pageSize;
    }
    public void setPageSize(int pageSize) {
        this.pageSize = pageSize;
    }
    // No
    public int getPageNo() {
        return pageNo;
    }
    public void setPageNo(int pageNo) {
        this.pageNo = pageNo;
    }
    //Count
    public int getTotalCount() {
        return totalCount;
    }
    public void setTotalCount(int totalCount) {
        this.totalCount = totalCount;
    }
}
